package com.lhy.login.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @author Liu Hangyu
 * @date 2022/1/7 22:20
 */
@CrossOrigin
@RestController
@RequestMapping("login")
public class LoginConroller {

    @PostMapping("login")
    public String login(@RequestBody String username) {
        System.out.println("login服务的login被调用");
        return username + "登陆成功";
    }

}
